package com.zzvcom.service.admin;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.zzvcom.persist.model.admin.LogImg;
import com.zzvcom.template.hibernate.DefaultManager;

@Service
@Transactional
public class LogImgManager extends DefaultManager<LogImg, String>
{
	private ImageManager im;

	@Override
	public void delete( LogImg img)
	{
       super.delete(img);
       im.deleteImageById(img.getImage());
	}

	public ImageManager getIm()
	{
		return im;
	}

	@Autowired
	public void setIm(ImageManager im)
	{
		this.im = im;
	}

}
